#FROM java:8
#VOLUME /tmp
#ADD application/target/productcenter.application-0.0.1.jar app.jar
#ENTRYPOINT ["java","-jar","/app.jar"]

FROM harbor.hz.zenlayer.net/library/apline_java_jdk:1.8

ARG APP_VER=0.0.1-SNAPSHOT
ARG APP_NAME=goudan-es
ENV APP_VER=${APP_VER} APP_NAME=${APP_NAME} ENVI=TEST

WORKDIR /opts/

RUN mkdir logs

COPY application/target/${APP_NAME}.application-*.jar app.application.jar
COPY tools/start.sh config/start.sh

VOLUME ["/opts/logs/"]
EXPOSE 16607
CMD ["sh","/opts/config/start.sh"]
